{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 留言列表 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20"> 
    <div class="cl pd-5 bg-1 bk-gray mt-20"> 
<!--         <span class="l"><a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> </span> 
 -->    <span class="r">共有数据：<strong id="count">{$count}</strong> 条</span>  
 </div>
    <div class="mt-20">
        <div class="page mb-10">
            {$page}
        </div>
        <form action="{:url('rule')}" method="post" id='sort-form'>
            <table class="table table-border table-bordered table-bg table-hover table-sort">
                <thead>
                    <tr class="text-c">
                        <th width="25"><input type="checkbox" name="" value=""></th>
                        <th width="50">ID</th>
                        <th width="100">会员</th>
                        <th width="200">内容/回复</th>
                        <th width="100">反馈时间</th>
                        <th width="50">问题类型</th>
                        <th width="120">操作</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach name="list" item="v"}
                        <tr class="text-c" id="tr{$v.id}">
                            <td><input type="checkbox" value="{$v.id}" name="del[]"></td>
                            <td>{$v.id}</td>
                            <td>{$v.uid}</td>
                            <td class="text-l">问：{$v.content}<br><br>回复：{$v.replycontent}</td>
                            <td>{$v.add_time|date="Y-m-d H:i:s"}</td>
                            <td>
                                {if condition="$v.type eq 1"}财务{/if}
                                {if condition="$v.type eq 2"}报单{/if}
                                {if condition="$v.type eq 3"}代理{/if}
                                {if condition="$v.type eq 4"}服务中心{/if}
                                {if condition="$v.type eq 5"}提现{/if}
                            </td>
                            <td>
                                <a class="ml-5 btn btn-default" onclick="article_add('回复留言','{:url('message_add',['id'=>$v.id])}',500,300)">回复</a>
                            </td>
                        </tr>
                    {/foreach}
                </tbody>
            </table>
        </form>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">

/*菜单-添加*/
function article_add(title,url,w,h){
    layer_show(title,url,w,h);
}

</script> 
</body>
</html>